//
//  ZHTJCompareManager.h
//  ZHTJFaceDemo
//
//  Created by thinkjoy on 2017/1/7.
//  Copyright © 2017年 杜瑞胜. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ZHTJFaceSetModel.h"
#import "ZHTJFaceError.h"

@interface ZHTJCompareManager : NSObject

#pragma mark    ----------1:1人脸对比----------
/**
 两个faceID进行对比

 @param faceIDAry 有效FaceID数组,数组中包含多个FaceID时,只对前两个进行操作
 @param completionHandler 回调
 */
+ (void)tj_CompareWithFaceIDAry:(NSArray<NSString*>*)faceIDAry completionHandler:(void (^)(CGFloat confidence, ZHTJFaceError *  error))completionHandler;

/**
 两个Img进行对比
 
 @param imgAry img数组,数组中包含多个img对象时,只对前两个进行操作;图片要求分辨率小于1920*1920，至少有一张人脸,当图片有多张人脸时,只对识别度最高的人脸进行操作；
 @param completionHandler 回调
 */
+ (void)tj_CompareImageAry:(NSArray<UIImage*>*)imgAry completionHandler:(void (^)(CGFloat confidence,NSArray<ZHTJFaceFeaturesModel*>*faceFeaturesMDAry, ZHTJFaceError *  error))completionHandler;

/**
 一个FaceID和一张图片进行对比

 @param faceID 有效的FaceID
 @param img 图片要求分辨率小于1920*1920，至少有一张人脸,当图片有多张人脸时,只对识别度最高的人脸进行操作；
 @param completionHandler 回调
 */
+ (void)tj_CompareFaceID:(NSString *)faceID image:(UIImage *)img completionHandler:(void (^)(CGFloat confidence,NSArray<ZHTJFaceFeaturesModel*>*faceFeaturesMDAry, ZHTJFaceError *  error))completionHandler;


@end
